# 电影票
# 不到3岁的观众免费；3～12岁的观众收费10美元；超过12岁的观众收费15美元

while True:
    age = input("\nHow old are you?\n(Enter 'quit' when you finished) ")

    if age == 'quit':
        break
    
    print("ticket price:", end="")
    if int(age) < 3:
        print("$0.00")
    elif int(age) <= 12:
        print("$10.00")
    else:
        print("$15.00")
